call showerror('No signature configured in either conference, bbs or global settings! Please correct this in THOR or turn off signature adding in AWebMailTo.thor.')
call close(fh)
address command 'c:delete >NIL: 'tempfile''
exit
end
else sig = GLOBD.SIGNATURE
end
else sig = BBSD.SIGNATURE
end
else sig = CONFD.SIGNATURE
drop CONFD.; drop BBSD.; drop GLOBD.
if(sig ~= "") then
do
/* signature may be a filename */
if(exists(sig)) then
do
call open(sigfh, sig, R)
do until eof(sigfh)
call writeln(tmp, readln(sigfh))
end
call close(sigfh)
end
else call writeln(tmp, sig) /* or just a string */
end
end
call close(tmp)
/* fill out some more variables that BBSREAD require */